package com.hnkywl.sts.entity.jhgl;

import com.hnkywl.sts.entity.BaseEntity;
import com.hnkywl.sts.entity.base.Sjzdz;
import com.hnkywl.sts.entity.sys.Cd;
import com.hnkywl.sts.entity.sys.Gg;
import org.hibernate.annotations.Where;

import javax.persistence.*;

/**
 * Created with IntelliJ IDEA.
 * User: ZHUCHG
 * Date: 13-4-2
 * Time: 上午9:44
 * To change this template use File | Settings | File Templates.
 */
@Entity
@Table(name = "T_BIZ_TPWZJHMX")
@Where(clause = "deleted!='1'")
public class Tpwzjhmx extends BaseEntity {
    @Id
    @SequenceGenerator(name = "seqTpwzjhmx", allocationSize = 1, sequenceName = "SEQ_BIZ_TPWZJHMX")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seqTpwzjhmx")
    private Long id;
    // 物资规格
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "WZGG_ID")
    private Gg wzgg;
    // 规格型号
    private String ggxh;
    // 产地
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "SJZDZ_CD_ID")
    private Sjzdz cd;
    // 长宽
    private String ck;
    // 计重方式
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "SJZDZ_JZFS_ID")
    private Sjzdz jzfs;
    //统配物资计划
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "TPWZJH_ID")
    private Tpwzjh tpwzjh;
    // 申报数量
    private Double sbsl;
    // 核定数量
    private Double hdsl = 0.0d;
    // 二次数量
    private Double echdsl;
    // 备注
    private String bz;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Gg getWzgg() {
        return wzgg;
    }

    public void setWzgg(Gg wzgg) {
        this.wzgg = wzgg;
    }

    public Sjzdz getCd() {
        return cd;
    }

    public void setCd(Sjzdz cd) {
        this.cd = cd;
    }

    public String getCk() {
        return ck;
    }

    public void setCk(String ck) {
        this.ck = ck;
    }

    public Sjzdz getJzfs() {
        return jzfs;
    }

    public void setJzfs(Sjzdz jzfs) {
        this.jzfs = jzfs;
    }

    public Tpwzjh getTpwzjh() {
        return tpwzjh;
    }

    public void setTpwzjh(Tpwzjh tpwzjh) {
        this.tpwzjh = tpwzjh;
    }


    public Double getSbsl() {
        return sbsl;
    }

    public void setSbsl(Double sbsl) {
        this.sbsl = sbsl;
    }

    public Double getHdsl() {
        return hdsl;
    }

    public void setHdsl(Double hdsl) {
        this.hdsl = hdsl;
    }

    public Double getEchdsl() {
        return echdsl;
    }

    public void setEchdsl(Double echdsl) {
        this.echdsl = echdsl;
    }

    public String getBz() {
        return bz;
    }

    public void setBz(String bz) {
        this.bz = bz;
    }

    public String getGgxh() {
        return ggxh;
    }

    public void setGgxh(String ggxh) {
        this.ggxh = ggxh;
    }
}
